package main

import "fmt"

func main() {
	//调用了多个defer后，执行顺序类似于栈。先进后出

	name := "go"
	defer fmt.Println(name)

	name = "python"
	defer fmt.Println(name)

	name = "java"
	fmt.Println(name)

}
